﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Appointment.aspx.cs" Inherits="URLWidgetDisplay.Appointment" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table id="newspaper-a" summary="Client Appointment History">
        <thead>
            <tr>
                <th scope="col">
                    <asp:LinkButton ID="uxAppointmentDate" runat="server">Appointment Date</asp:LinkButton>
                </th>
                <th scope="col">
                    <asp:LinkButton ID="uxStartTime" runat="server">Start Time</asp:LinkButton>
                </th>
                <th scope="col">
                    <asp:LinkButton ID="uxEndTime" runat="server">End Time</asp:LinkButton>
                </th>
                <th scope="col">
                    <asp:LinkButton ID="uxStaff" runat="server">Staff</asp:LinkButton>
                </th>
                <th scope="col">
                    <asp:LinkButton ID="uxProgram" runat="server">Program</asp:LinkButton>
                </th>
                <th scope="col">
                    <asp:LinkButton ID="uxScheduledService" runat="server">Scheduled Service</asp:LinkButton>
                </th>
                <th scope="col">
                    <asp:LinkButton ID="uxStatus" runat="server">Status</asp:LinkButton>
                </th>
                <th scope="col">
                    <asp:LinkButton ID="uxPosted" runat="server">Posted?</asp:LinkButton>
                </th>
                <th scope="col">
                    <asp:LinkButton ID="uxMissedVisit" runat="server">Missed Visit Type</asp:LinkButton>
                </th>
                <th scope="col">
                    Notes
                </th>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="uxRepeater" runat="server">
                <ItemTemplate>
                    <tr>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "AppointmentDate","{0:MM/dd/yyyy}" ) %>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "StartTime") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "EndTime") %>
                        </td>
                        <td>
                            (<%# DataBinder.Eval(Container.DataItem, "StaffId") %>)
                            <%# DataBinder.Eval(Container.DataItem, "StaffName") %>
                        </td>
                        <td>
                            (<%# DataBinder.Eval(Container.DataItem, "ProgramCode") %>)
                            <%# DataBinder.Eval(Container.DataItem, "ProgramValue") %>
                        </td>
                        <td>
                            (<%# DataBinder.Eval(Container.DataItem, "ScheduledServiceCode") %>)
                            <%# DataBinder.Eval(Container.DataItem, "ScheduledServiceValue") %>
                        </td>
                        <td>
                            (<%# DataBinder.Eval(Container.DataItem, "StatusCode") %>)
                            <%# DataBinder.Eval(Container.DataItem, "StatusValue") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "PostedCode") %>
                        </td>
                        <td>
                            (<%# DataBinder.Eval(Container.DataItem, "MissedVisitServiceCode") %>)
                            <%# DataBinder.Eval(Container.DataItem, "MissedVisitServiceValue") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "Notes") %>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>

    <table id="newspaper-a-crosstab" summary="Client Appointment History Crosstab">
        <thead>
            <tr>
                <th scope="col">
                    <%--<asp:LinkButton ID="uxCrosstabItem" runat="server">Service Type</asp:LinkButton>--%>
                    Service Type
                </th>
                <th scope="col">
                    <%--<asp:LinkButton ID="uxCrosstabNumOfItems" runat="server">Number of Services</asp:LinkButton>--%>
                    Number of Services
                </th>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="uxRepeaterCrosstab" runat="server">
                <ItemTemplate>
                    <tr>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "Item") %>
                        </td>
                        <td>
                            <%# DataBinder.Eval(Container.DataItem, "NumberOfItems") %>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
</asp:Content>
